---
layout: default
title: Categories
group: navigation
---
<h3 class="heading text-right">目录</h3>


{% for category in site.categories %}
  <h2 class="text-right" id="{{ category[0] }}"><a href="#{{ category[0] }}">{{ category[0] }}</a></h2>
  <ul class="text-right">
    {% assign pages_list = category[1] %}

    {% for node in pages_list %}
      {% if node.title != null %}
        {% if group == null or group == node.group %}
          {% if page.url == node.url %}
          <li class="list-group-item"><a href="{{ site.baseurl }}{{node.url}}" class="active">{{node.title}}</a></li>
          {% else %}
          <li class="list-group-item"><a href="{{ site.baseurl }}{{node.url}}">{{node.title}}</a></li>
          {% endif %}
        {% endif %}
      {% endif %}
    {% endfor %}

    {% assign pages_list = nil %}
    {% assign group = nil %}
  </ul>
{% endfor %}
